﻿@using TinyMoocSite.ViewModels
@model AttachedPageArray

@{
    ViewBag.Title = Model.Title + "|附加页";
    Layout = "~/Views/Student/CoursePageLayout.cshtml";
}

@section AttachedPage { active }

@section RightContainer
{
    <h4>附加页管理</h4><hr />

    <table class="table">
        <thead>
            <tr>
                <th>页面编号</th>
                <th>页面标题</th>
                <th>创建者</th>
                <th>创建日期</th>
                <th>阅读人数</th>
            </tr>
        </thead>
        <tbody>
            @foreach (AttachedPageItem item in Model.AttachedPageList)
            {
                <tr>
                    <td>@item.Id</td>
                    <td><a href="/Student/AttachedPageContent?Id=@item.Id">@item.Title</a></td>
                    <td>@item.Owner</td>
                    <td>@item.UpdateTime</td>
                    <td>@item.ReadCount</td>
                </tr>
            }
        </tbody>
    </table>
}
